package com.atguigu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("interceptor")
public class InterceptorController {
    @GetMapping("data1")
    public String data1(){
        System.out.println("Interceptor.data1");
        return "data1";
    }
    @GetMapping("data2")
    public String data2(){
        System.out.println("Interceptor.data2");
        return "data2";
    }
}
